package com.homelink.crashhandle;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.homelink.crashhandle.util.ConstantsUtils;

/**
 * Created by Fcy on 2015/11/3. 用于接收发送log广播的广播接受者
 */
public class PushBroadcastReceiver extends BroadcastReceiver
{
	@Override
	public void onReceive(Context context, Intent intent)
	{
		if (ConstantsUtils.BROAD_CAST_ACTION_PUSH.equals(intent.getAction()))
		{
			LogBuffer.getInstance().writeLog(false);
			LogBuffer.getInstance().post(false);
		}
	}
}
